//
//  LGDoubleLabelCell.m
//  LuxuryGoods
//
//  Created by 刘星辰 on 2018/5/26.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "LGDoubleLabelCell.h"

@interface LGDoubleLabelCell()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *detailRight;

@end


@implementation LGDoubleLabelCell

- (void)isSpecialColor:(BOOL)isSpecial
{
    self.detailLab.textColor = (isSpecial)?(UIColorFromRGB(0x855424)):(UIColorFromRGB(0x999999));
}

- (void)isHidenArrows:(BOOL)hiden{
    if (hiden) {
        self.line.hidden = YES;
        self.detailRight.constant = 15;
    }else{
        self.line.hidden = NO;
        self.detailRight.constant = 38;
    }
}

- (void)isHidenLine:(BOOL)hiden
{
    CGFloat width = [UIScreen mainScreen].bounds.size.width;
    if (hiden) {
        self.separatorInset = UIEdgeInsetsMake(0, width /2.0 , 0, width/2.0);
    }else{
        self.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);
    }
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
